/**
 *
 */
package com.wedroid.r2d2.service;

import com.wedroid.entity.contact.Contacter;
import com.wedroid.entity.contact.Droid;
import com.wedroid.entity.contact.GroupMember;

/**
 * @author lute
 */
public interface ContactService {

    /**
     * @param droid
     */
    public void createDroid(Droid droid);

    /**
     * @param name
     * @return
     */
    public Droid getDroid(String name);

    /**
     * @param contacter
     * @return
     */
    public Contacter createOrUpdateContacter(Contacter contacter);

    /**
     * @param contacter
     */
    public void updateContacter(Contacter contacter);

    /**
     * @param groupMember
     */
    public void createOrUpdateGroupMember(GroupMember groupMember);

    /**
     * @param group
     * @param name
     * @return
     */
    public GroupMember getGroupMember(Contacter group, String name);

    /**
     * @param groupMember
     */
    public void updateGroupMember(GroupMember groupMember);

}
